<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>布局</title>
    <style>

        * {
            font-family: Arial;
            font-size: 14px;
            margin: 0;
            padding: 0;
            border: none;
        }
        a { text-decoration: none; }
        ul { list-style: none; }
        html,body {
            height: 100%;
        }
        body {
            background-image: url("../images/bg.jpg");
            background-repeat: no-repeat;
        }

        .page-header {
            height: 70px;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: space-between;
        }
        .logo {
            display: flex;
            padding-left: 20px;
            padding-right: 20px;
            align-items: center;
        }

        .topNav {
            display: flex;
            padding-left: 20px;
            padding-right: 20px;
            justify-content: space-between;
            align-items: center;
        }
        .topNav >a {
            border: 1px solid white;
            color: white;
            border-radius: 8px;
            margin-right: 20px;
            height: 36px;
            line-height: 36px;
            padding: 0 10px;
            text-align: center;

        }
        .topNav >a:hover{
            background-color: skyblue;
            border: 1px solid skyblue;
        }
        .topNav >a:first-of-type {

        }
        .topNav >a:last-of-type {
            margin-right: 0;
        }

        .page-content {
            /* 100 vh就是100%视口高度,70就是前面nav高度*/
            height: calc(100vh - 70px);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .content-nav {
            width: 1000px;
            height: 300px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .content-nav .box {
            width: 180px;
            height: 200px;
            background-color: skyblue;
            transition: 0.5s linear;
        }

        .content-nav .box1 {
            background-color: #595CA8;
        }

        .content-nav .box2 {
            background-color: #FF9D2E;
        }

        .content-nav .box3 {
            background-color: #01A6DE;;
        }

        .content-nav .box4 {
            background-color: #015E91;
        }

        .content-nav .box5 {
            background-color: #1DC128;
        }


        .content-nav .box:hover {
            margin-top: 1px;
            box-shadow: 0 0 10px black;
        }
        .content-nav .content-pic {
            height: 150px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .content-nav .content-span {
            text-align: center;
            color: white;
            height: 50px;
            line-height: 50px;
        }
    </style>
</head>
<body>
<!--头部-->
<div class="page-header">
<div class="logo"><img src="../images/logo.png"></div>
<div class="topNav">
    <a href="#" >国内校区</a>
    <a href="#" >缅甸校区</a>
    <a href="#" >非洲校区</a>
    <a href="#" >美国校区</a>
</div>
</div>

<!--内容-->
<div class="page-content">
    <div class="content-nav">
        <div class="box box1"><div class="content-pic"><img src="../images/item1.png"></div> <div class="content-span">我的邮箱</div> </div>
        <div class="box box2"><div class="content-pic"><img src="../images/item2.png"></div> <div class="content-span">云服务</div> </div>
        <div class="box box3"><div class="content-pic"><img src="../images/item3.png"></div> <div class="content-span">手机课堂</div> </div>
        <div class="box box4"><div class="content-pic"><img src="../images/item4.png"></div> <div class="content-span">微信服务</div> </div>
        <div class="box box5"><div class="content-pic"><img src="../images/item5.png"></div> <div class="content-span">在线课堂</div> </div>
    </div>
</div>

</body>
</html>